﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Masterpage/QuanLy.Master" AutoEventWireup="true"
    CodeBehind="ChiTietLopHoc.aspx.cs" Inherits="DT5_Anh09110006_Hung09110044_Vu09110157.QuanLy.ChiTietLopHoc" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
    <title>Chi Tiết Lớp Học</title>
    <style type="text/css">
        .style1
        {
            width: 120px;
            padding-left: 20px;
            height: 30px;
        }
        .style2
        {
            width: auto;
            height: 30px;
        }
         #qllh
        {
            background: url("../Image/menu_focus.png") no-repeat scroll transparent;
            color: #FFFFFF;
            left: -6px;
            padding: 19px 18px 19px 25px;
        }
    </style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <h1 style="padding-left: 40px">
        Trang Thông Tin Chi Tiết Lớp Học</h1>
    <table style="margin: 10px 20px 10px 20px; width: 95%" cellpadding="10px">
        <tr>
            <td>
                <asp:Panel ID="Panel1" runat="server" GroupingText="Thông tin chính">
                    <table style="margin-left: 20px" cellpadding="5px">
                        <tr>
                            <td class="style1">
                                Mã lớp:
                            </td>
                            <td class="style2">
                                <asp:Label ID="lblMaLop" runat="server" Width="200px" />
                            </td>
                        </tr>
                        <tr>
                            <td class="style1">
                                Giáo viên phụ trách:
                            </td>
                            <td class="style2">
                                <asp:Label ID="lblbGV" runat="server" Width="200px" />
                            </td>
                        </tr>
                        <tr>
                            <td class="style1">
                                Phòng học:
                            </td>
                            <td class="style2">
                                <asp:Label ID="lblPhongHoc" runat="server" Width="200px" />
                            </td>
                        </tr>
                        <tr>
                            <td class="style1">
                                Học phí:
                            </td>
                            <td class="style2">
                                <asp:Label ID="lblHocPhi" runat="server" Width="200px" />
                            </td>
                        </tr>
                           <tr>
                            <td class="style1">
                                Sỉ Số:
                            </td>
                            <td class="style2">
                                <asp:Label ID="lblSiSo" runat="server" Width="200px" />
                            </td>
                        </tr>
                        <tr>
                            <td class="style1">
                                Ngày khai giảng
                            </td>
                            <td class="style2">
                                <asp:Label ID="lblNgayKhaiGiang" runat="server" Width="200px" />
                            </td>
                        </tr>
                    </table>
                </asp:Panel>
            </td>
            <td>
                <asp:Panel ID="Panel2" runat="server" GroupingText="Thông tin phụ thêm">
                    <table style="margin-left: 20px" cellpadding="5px">
                        <tr>
                            <td class="style1">
                                Lịch học:
                            </td>
                            <td class="style2">
                                <asp:Label ID="lblLichHoc" runat="server" Width="200px" />
                            </td>
                        </tr>
                        <tr>
                            <td class="style1">
                                Mô tả:
                            </td>
                            <td>
                                <asp:Label ID="lblMota" runat="server" Width="200px" />
                            </td>
                        </tr>
                        <tr>
                            <td class="style1">
                            </td>
                            <td class="style2">
                                <asp:Button ID="btnQuayLai" Text="Quay Lại" runat="server" Width="100px" CssClass="btnQuayLai"
                                    OnClick="btnQuayLai_Click" />
                            </td>
                        </tr>
                        <tr>
                            <td class="style1">
                            </td>
                            <td class="style2">
                            </td>
                        </tr>
                        <tr>
                            <td class="style1">
                            </td>
                            <td class="style2">
                            </td>
                        </tr>
                          <tr>
                            <td class="style1">
                            </td>
                            <td class="style2">
                            </td>
                        </tr>
                    </table>
                </asp:Panel>
            </td>
        </tr>
          <tr>
        <td colspan="2">
        <p style="font-size: large; font-weight: bold">Danh sách học viên</p>
        <p>
          <asp:Button ID="btnThemHV" runat="server" CssClass="btnThem" Text="Thêm Mới" OnClick="btnThemHV_Click" />
        </p>
                        <asp:GridView ID="grvHocVien" runat="server" 
                AutoGenerateColumns="False" CellPadding="4"
                            ForeColor="#333333" GridLines="None" AllowPaging="True" 
                PageSize="15" OnPageIndexChanging="grvHocVien_PageIndexChanging" 
                onrowcommand="grvHocVien_RowCommand">                            
                            <Columns>
                               <asp:TemplateField>
                                    <HeaderTemplate>
                                        STT
                                    </HeaderTemplate>
                                    <ItemTemplate>
                                        <%# Container.DataItemIndex + 1 %>
                                    </ItemTemplate>
                                </asp:TemplateField>
                                <asp:BoundField HeaderText="Mã Học Viên" DataField="MaHV" />
                                <asp:TemplateField>
                                <HeaderTemplate>
                                Tên Học Viên
                                </HeaderTemplate>
                                <ItemTemplate>
                                <%# Eval("HocVien.HoTenHV")%>
                                </ItemTemplate>
                                </asp:TemplateField>
                                <asp:BoundField HeaderText="Điểm 1" DataField="Diem1" />
                                <asp:BoundField HeaderText="Điểm 2" DataField="Diem2"/>
                                <asp:BoundField HeaderText="Đóng Học Phí" DataField="DongHocPhi" />
                                   <asp:TemplateField>
                                    <HeaderTemplate>
                                        Chức Năng</HeaderTemplate>
                                    <ItemTemplate>            
                                        <asp:ImageButton ID="ImageButton2" ImageUrl="~/Image/edit_16x16.gif" runat="server"
                                            CommandName="Sua" CommandArgument='<%#Eval("MaHV")%>' />
                                        <asp:ImageButton ID="ImageButton3" ImageUrl="~/Image/delete_16x16.gif" CommandName="Xoa"
                                            CommandArgument='<%#Eval("MaHV")%>' runat="server" OnClientClick="return confirm('Bạn có chắc chắn muốn xóa không');" />
                                    </ItemTemplate>
                                </asp:TemplateField>
                            </Columns>
                            <AlternatingRowStyle BackColor="White" />
                            <FooterStyle BackColor="#990000" Font-Bold="True" ForeColor="White" />
                            <HeaderStyle BackColor="#990000" Font-Bold="True" ForeColor="White" />
                            <PagerStyle BackColor="#FFCC66" ForeColor="#333333" HorizontalAlign="Center" />
                            <RowStyle BackColor="#FFFBD6" ForeColor="#333333" />
                            <SelectedRowStyle BackColor="#FFCC66" Font-Bold="True" ForeColor="Navy" />
                            <SortedAscendingCellStyle BackColor="#FDF5AC" />
                            <SortedAscendingHeaderStyle BackColor="#4D0000" />
                            <SortedDescendingCellStyle BackColor="#FCF6C0" />
                            <SortedDescendingHeaderStyle BackColor="#820000" />
                        </asp:GridView>
        </td>
        </tr>
    </table>
</asp:Content>
